package com.my.internetplus.dao;

import com.my.internetplus.model.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CartDao {
    void insertCart(@Param("userid") int userid, @Param("goodid") int goodid,@Param("sum") int sum);
    List<Map<String,String>> selectCartInfoList(int userid);
    void updateCart(@Param("cartid") int cartid,@Param("sum") int sum);
    void subCart(int cartid);
    void addCart(int cartid);
    List<Map<String,String>>selectCartListsById(@Param("idlist") List idlist);
    void deleteCart(@Param("cartidList") List cartidList);
    List<Cart> selectCartByidList(@Param("idList") List idList);


}
